const bannerModel = require("../models/bannerModel.js")

class Banner {
    detail(id) {
        return bannerModel.detail(id)
    }
    list() {
        return bannerModel.list()
    }
    search(keyword) {
        return bannerModel.search(keyword)
    }
    add(banner_title, banner_link, banner_url) {
        return bannerModel.add(banner_title, banner_link, banner_url)
    }
    modify(banner_title, banner_link, banner_url, id) {
        return bannerModel.modify(banner_title, banner_link, banner_url, id)
    }
    remove(id) {
        return bannerModel.remove(id)
    }
    items(page_num, page_size) {
        return bannerModel.items(page_num, page_size)
    }
}

module.exports = Banner